// 评价结果表
package dbModel

import "time"

type EvaluateResult struct {
	Id            string    `json:"id" gorm:"primary_key; column:id;type:varchar(255)"`
	TaskId        string    `json:"taskId" gorm:"column:task_id; type:varchar(255)" validate:"required"`
	TemplateId    string    `json:"templateId" gorm:"column:template_id; type:varchar(255)" validate:"required"`
	QuotaId       string    `json:"quotaId" gorm:"column:quota_id; type:varchar(255)" validate:"required"`
	QuotaName     string    `json:"quotaName" gorm:"column:quota_name; type:varchar(255)" validate:"required"`
	ExpertId      string    `json:"expertId" gorm:"column:expert_id; type:varchar(255)" validate:"required"`
	AverageScore  float64   `json:"averageScore" gorm:"column:average_score; type:float"`
	AbsoluteScore float64   `json:"absoluteScore" gorm:"column:absolute_score; type:float"`
	SegmentScore  string    `json:"segmentScore" gorm:"column:segment_score; type:varchar(255)"`
	IsTotalScore  bool      `json:"isTotalScore" gorm:"column:is_total_score; type:boolean"` // 是否总得分
	Note          string    `json:"note" gorm:"column:note; type:text"`
	EvaluatePerson string    `json:"evaluatePerson" gorm:"column:evaluate_person; type:varchar(255)"`
	CreateTime    time.Time `json:"-" gorm:"column:create_time; autoCreateTime"`
	UpdateTime    time.Time `json:"-" gorm:"column:update_time; autoUpdateTime"`
}

// 数据表
func (*EvaluateResult) TableName() string {
	return "evaluate_result"
}
